#ifndef CALIBRATEUI_H
#define CALIBRATEUI_H

#include <QWidget>
#include <QLineEdit>
class CalibrateUI : public QWidget
{
    Q_OBJECT
public:
    explicit CalibrateUI(QWidget *parent = 0);
    
protected:
    bool eventFilter(QObject *watched, QEvent *event);
    virtual void closeEvent(QCloseEvent *event);
signals:
    void    CallKeyBoard(const QString&,int);

public slots:
    void CalibrateClear();
    void CalibrateShowValue(int);
    void Calibrate1();
    void Calibrate2();
    void CalcCoef();
    void CheckCalibrateValue();
    void ReceiveKeyBoardData(const QString&,const QString&);
private:
     QLineEdit *m_edit1;
     QLineEdit *m_edit2;
     QLineEdit *m_edit3;
     QLineEdit *m_edit4;
     QLineEdit *m_edit5;
     QLineEdit *m_edit1_1;
     QLineEdit *m_edit2_1;
     QLineEdit *m_edit3_1;
     QLineEdit *m_edit4_1;
     bool      m_isOpenRealTime;
private:
    void        SendCofeCmd(float,float);
};

#endif // CALIBRATEUI_H
